home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crosscountry USA Photo Safari
/
Crosscountry USA Photo Safari.iso
/
Data
/
cc_base
/
pak00_16bit_f.pk3
/
credits.gl.p
< prev
next >
Wrap
Text File
|
2002-11-29
|
2KB
|
97 lines
{
ActiveWhileHidden = TRUE;
Hidden = TRUE;
ChildID = {
GuiAnimation("plate") {
AnimationID = "anim/guage_gui/guage_window.pcx";
X = 0;
Y = 0;
Width = 500;
Height = 360;
},
GuiAnimation("guages") {
AnimationID = "anim/guage_gui/window/guagy.anm";
X = 0;
Y = 0;
Width = 340;
Height = 360;
},
GuiCreditsTileMap ("scroller") {
X = 109;
Y = 40;
Height = 225;
TileMapID = TileMap {
TileCountX = 1;
TileCountY = 2;
TileSet = {
"image/credits.pcx"
};
TileArray = {
0,
0
};
}
ScriptID = Script {
@loaded {
ResPropSetInt(SELF, "Width", ResPropGetInt(TileMapGetTileResID(ResPropGetResID(SELF, "TileMapID"), 0), "Width"));
}
@show {
ResPropSetInt(SELF, "ScrollY", 0);
ResPropSetInt(SELF, "state", 0);
ResPropSetInt(SELF, "timeout", CVarGetInt("framerate") * 5);
}
@animate {
int scrolly;
int height;
int state;
int timeout;
resid credits_image_id;
ResPropAlias(SELF, "state", "state");
ResPropAlias(SELF, "timeout", "timeout");
if (state==0) {
timeout -= 1;
if (timeout<0) {
state = 1;
} else {
stop;
}
}
ResPropAlias(SELF, "ScrollY", "scrolly");
credits_image_id = TileMapGetTileResID(ResPropGetResID(SELF, "TileMapID"), 0);
height = ResPropGetInt(credits_image_id, "Height");
scrolly -= 1;
if (scrolly<-height) {
scrolly += height;
}
}
};
},
GuiButton("main_menu") {
X = 160;
Y = 280;
TextID = Mangle(1/*"Main Menu"*/);
StyleID = "gui/bs/square.gbs";
FontID = "font/square_black_on_gray_9.tf";
Width = 160;
AutoSize = HEIGHT;
ScriptID = Script {
@activate {
resid mc;
mc = ResByName("splash_screen.gl/menu_controller");
ResPropSetResID(mc,"panel_to_display", ResByName("main_menu.gl"));
}
};
}
};
}